package com.tg.data.http.entity;

import android.os.Parcel;
import android.os.Parcelable;

public class LampEventMessageBean implements Parcelable {
    public long start_ts;
    public long end_ts;
    public long show_start_ts;
    public long startTime = 0;
    public String end_image_path;
    public String start_image_path;
    public String ossid;
    public String uuid;
    public boolean image = false;
    public String tag_msg;
    public String tag_name;
    public String tag_icon;
    public int is_pay;
    public int image_count = 1;
    public String getTag_msg() {
        return tag_msg;
    }
    public String getTag_name() {
        return tag_name;
    }
    public String getTag_icon() {
        return tag_icon;
    }
    public LampEventMessageBean(){
        start_ts = System.currentTimeMillis();
        show_start_ts = start_ts;
        end_ts = start_ts + 90000;
        start_image_path = "https://pics4.baidu.com/feed/0b46f21fbe096b63dbd5c888670f8c4ce9f8acda.jpeg?token=c896fe437cf79cf863cc1eded64c8884&s=63B303664BD1604102D4245A030070F6";
    }
    public String getImage_path(){
        return start_image_path;
    }

    public long getStart_ts(){
        return start_ts;
    }

    public long getEnd_ts(){
        return end_ts;
    }

    protected LampEventMessageBean(Parcel in) {
        start_ts = in.readLong();
        end_ts = in.readLong();
        show_start_ts = in.readLong();
        end_image_path = in.readString();
        start_image_path = in.readString();
        ossid = in.readString();
        is_pay = in.readInt();
        image_count = in.readInt();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeLong(start_ts);
        dest.writeLong(end_ts);
        dest.writeLong(show_start_ts);
        dest.writeString(end_image_path);
        dest.writeString(start_image_path);
        dest.writeString(ossid);
        dest.writeInt(is_pay);
        dest.writeInt(image_count);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<LampEventMessageBean> CREATOR = new Creator<LampEventMessageBean>() {
        @Override
        public LampEventMessageBean createFromParcel(Parcel in) {
            return new LampEventMessageBean(in);
        }

        @Override
        public LampEventMessageBean[] newArray(int size) {
            return new LampEventMessageBean[size];
        }
    };
}
